
/* start /web-platform/scripts/web-platform/helpers/misc.js*/
window.SOE=window.SOE||{};SOE.Utils=SOE.Utils||{};SOE.Utils.addSeparators=function(number,keepDecimals){'use strict';var withSeparators=number.toLocaleString();if(!keepDecimals){var decimalSeparator=Number(1.1).toLocaleString().charAt(1);var decimalLocation=withSeparators.lastIndexOf(decimalSeparator);if(decimalLocation>=0){withSeparators=withSeparators.substr(0,decimalLocation);}}
return withSeparators;};SOE.Utils.abbreviateNumber=function(number){'use strict';var suffixes=['','k','m','b','t'];var absNum=Math.abs(number);var signString=number<0?'-':'';var whichSuffix=Math.floor((absNum.toString().length-1)/3);whichSuffix=Math.min(whichSuffix,suffixes.length-1);var suffixBase=Math.pow(1000,whichSuffix);if(absNum/suffixBase<10){return signString+(absNum/suffixBase).toString().substr(0,3)+suffixes[whichSuffix];}else{return signString+Math.floor(absNum/suffixBase).toString()+suffixes[whichSuffix];}};SOE.Utils.ordinalForNumber=function(num){'use strict';var mod100=num%100;var mod10=num%10;if(mod10===1&&mod100!==11){return'st';}else if(mod10===2&&mod100!==12){return'nd';}else if(mod10===3&&mod100!==13){return'rd';}else{return'th';}};SOE.Utils.getTimeLapse=function(timestamp,options){'use strict';var fullOptions=options||{};var deltaSeconds=fullOptions.valueIsDelta?(timestamp/1000):((Date.now()-timestamp)/1000);var result='';var seconds,minutes,hours,days,spacePart,agoPart,units;if(fullOptions.format==='compact'){seconds=Math.floor(deltaSeconds)%60;if(seconds<10){seconds='0'+seconds;}
minutes=Math.floor(deltaSeconds/60)%60;if(minutes<10){minutes='0'+minutes;}
hours=Math.floor(deltaSeconds/3600)%24;if(hours<10){hours='0'+hours;}
days=Math.floor(deltaSeconds/86400);if(days>0){days+=':';}else{days='';}
result=days+hours+':'+minutes+':'+seconds;}else{spacePart=fullOptions.spaceBeforeUnits?' ':'';agoPart=fullOptions.includeAgo?' ago':'';if(deltaSeconds<60){result=Math.floor(deltaSeconds);units=['second','seconds'];}else if(deltaSeconds<3600){result=Math.floor(deltaSeconds/60);units=['minute','minutes'];}else if(deltaSeconds<86400){result=Math.floor(deltaSeconds/3600);units=['hour','hours'];}else if(deltaSeconds<2628000){result=Math.floor(deltaSeconds/86400);units=['day','days'];}else{result=Math.floor(deltaSeconds/2628000);units=['month','months'];}
result+=spacePart+SOE.Utils.singularOrPlural(result,units[0],units[1])+agoPart;}
return result;};SOE.Utils.ellipsisAtBreak=function(str,maxLength){'use strict';var matches;if(maxLength<=0){return'';}else if(str.length<=maxLength){return str;}else{matches=new RegExp('^.{0,'+(maxLength-1)+'}(?=\\s)').exec(str);if(matches){return matches[0]+'\u2026';}else{return str.substr(0,maxLength-1)+'\u2026';}}};SOE.Utils.stripTags=function(str){'use strict';var cleaned=str.replace(/<script.*?>.*?<\/script.*?>/,'');cleaned=$('<div/>').html('<p>'+cleaned+'</p>').text();return cleaned;};SOE.Utils.singularOrPlural=function(value,resultIfOne,resultOtherwise){'use strict';return value===1?resultIfOne:resultOtherwise;};SOE.Utils.setSearchParam=function(query,name,value){'use strict';var params=[];query=query||'';try{if(query.length>1){params=query.substring(1).split('&').filter(function(val){return(val.indexOf(name+'=')!==0);});}}catch(e){}
params.push(encodeURIComponent(name)+'='+encodeURIComponent(value));return'?'+params.join('&');};SOE.Utils.isValidEmailAddress=function(email){'use strict';return typeof email==='string'&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(email);};SOE.Utils.isValidEmailField=function(el){'use strict';return el&&el.validity.valid&&SOE.Utils.isValidEmailAddress(el.value);};SOE.Utils.isValidGameCardCode=function(code){'use strict';return(typeof code==='string')&&(/^[a-zA-Z0-9]{10,}$/.test(code.replace(/\s/g,'')));};SOE.Utils.cleanGameCardCode=function(code){'use strict';if(typeof code==='string'){return code.replace(/\s/g,'');}else{return'';}};SOE.Utils.fancyJoin=function(strings,mainSeparator,lastSeparator){'use strict';if(Array.isArray(strings)){if(strings.length>1){return strings.slice(0,-1).join(mainSeparator)+lastSeparator+strings.slice(-1);}else if(strings.length===1){return strings[0];}else{return'';}}};SOE.Utils.debounce=function(func,wait,options){'use strict';var lastArgs,lastThis,result,timerId,lastCallTime=0,lastInvokeTime=0,leading=false,maxWait=false,trailing=true,nativeMax=Math.max,nativeMin=Math.min,FUNC_ERROR_TEXT='Expected a function';if(typeof func!=='function'){throw new TypeError(FUNC_ERROR_TEXT);}
wait=Number(wait)||0;if(SOE.Utils.isObject(options)){leading=!!options.leading;maxWait='maxWait'in options&&nativeMax(toNumber(options.maxWait)||0,wait);trailing='trailing'in options?!!options.trailing:trailing;}
function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}
function leadingEdge(time){lastInvokeTime=time;timerId=setTimeout(timerExpired,wait);return leading?invokeFunc(time):result;}
function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,result=wait-timeSinceLastCall;return maxWait===false?result:nativeMin(result,maxWait-timeSinceLastInvoke);}
function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return(!lastCallTime||(timeSinceLastCall>=wait)||(timeSinceLastCall<0)||(maxWait!==false&&timeSinceLastInvoke>=maxWait));}
function timerExpired(){var time=Date.now();if(shouldInvoke(time)){return trailingEdge(time);}
timerId=setTimeout(timerExpired,remainingWait(time));}
function trailingEdge(time){clearTimeout(timerId);timerId=undefined;if(trailing&&lastArgs){return invokeFunc(time);}
lastArgs=lastThis=undefined;return result;}
function cancel(){if(timerId!==undefined){clearTimeout(timerId);}
lastCallTime=lastInvokeTime=0;lastArgs=lastThis=timerId=undefined;}
function flush(){return timerId===undefined?result:trailingEdge(Date.now());}
function debounced(){var time=Date.now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined){return leadingEdge(lastCallTime);}
clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}
return result;}
debounced.cancel=cancel;debounced.flush=flush;return debounced;};SOE.Utils.isObject=function(value){'use strict';var type=typeof value;return!!value&&(type==='object'||type==='function');};if(!Array.prototype.findIndex){Object.defineProperty(Array.prototype,'findIndex',{value:function(predicate){'use strict';if(this==null){throw new TypeError('Array.prototype.findIndex called on null or undefined');}
if(typeof predicate!=='function'){throw new TypeError('predicate must be a function');}
var list=Object(this);var length=list.length>>>0;var thisArg=arguments[1];var value;for(var i=0;i<length;i++){value=list[i];if(predicate.call(thisArg,value,i,list)){return i;}}
return-1;},enumerable:false,configurable:false,writable:false});}
var populateURLParams=function(){if(window.location.search.length>1){var _parametersets=window.location.search.substr(1).split('&');for(var _keyValuePair,i=0;i<_parametersets.length;i++){_keyValuePair=_parametersets[i].split('=');globs.urlparameters[decodeURI(_keyValuePair[0])]=decodeURI(_keyValuePair[1]);}}};if(typeof window.console==='undefined'){var console={log:function(){}};}
var logToConsole=function(string){if(typeof window.console!=='undefined'&&typeof window.console.log!=='undefined'){console.log(string);}};var extend=function(target,source){target=target||{};for(var prop in source){if(source.hasOwnProperty(prop)){if(typeof source[prop]==='object'){target[prop]=extend(target[prop],source[prop]);}else{target[prop]=source[prop];}}}
return target;};var wpCookie=function(key,value,expires,domain,secure){this._wpCookie=function(key,value,expires,domain,secure){var days,expiration,cookStr;if(typeof value!=='undefined'){value=String(value);if(!globs.wdl.wdlCookDNT||expires==-1){if(typeof expires!=='undefined'){if(typeof expires==='number'){days=expires;expires=new Date();expires.setDate(expires.getDate()+days);expiration=expires.toGMTString();}else{if(typeof expires==='object'){expiration=expires.toGMTString();}else if(typeof expires==='string'){if(expires.length>28){expiration=expires;}else{expiration='';}}}}else{expiration='';}
cookStr=key+'='+value+'; expires='+expiration+'; path=/';if(domain){cookStr+='; domain='+domain;}
if(secure){cookStr+='; secure='+secure;}
return(document.cookie=cookStr);}else{return false;}}
var cookieResult=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie);return(cookieResult?cookieResult[1]:null);};if(typeof value==='undefined'||expires===-1||typeof globs.wdl.cookieWhitelist==='undefined'||(Array.isArray(globs.wdl.cookieWhitelist)&&globs.wdl.cookieWhitelist.indexOf(key)>=0)){return _wpCookie(key,value,expires,domain,secure);}};wpCookie.purgeDNTCookies=function(exemptedCookies){var _exemptedCookies=['wdlCookPol','wdlCookDNT'];var minDomainParts=document.location.hostname.split('.');var minDomain=minDomainParts.length>=2?minDomainParts.slice(-2).join('.'):document.location.hostname;_exemptedCookies=exemptedCookies||_exemptedCookies;var cookies=document.cookie.split(';').filter(function(cookie){var cookieName=cookie.split('=')[0].trim();return _exemptedCookies.indexOf(cookieName)<0;});cookies.forEach(function(cookie){var cookieName=cookie.split('=')[0].trim();wpCookie(cookieName,'',-1);wpCookie(cookieName,'',-1,minDomain);document.cookie=cookieName+'=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';document.cookie=cookieName+'=; expires=Thu, 01 Jan 1970 00:00:01 GMT;domain='+minDomain;});};wpCookie.setCookDNT=function(dntStatus){'use strict';if(dntStatus){wpCookie.purgeDNTCookies();globs.wdl.wdlCookDNT=true;wpCookie.setDNTCookieEverywhere('wdlCookDNT','1');wpCookie('wdlCookDNT','1',315360000);}else{globs.wdl.wdlCookDNT=false;wpCookie.setDNTCookieEverywhere('wdlCookDNT','0',-1);wpCookie('wdlCookDNT','0',-1);}
return dntStatus;};wpCookie.setDNTCookieEverywhere=function(key,value,expires){'use strict';if(typeof value!=='undefined'){value=String(value);if(expires==-1){_processAllDomains('/cookie/delete',{name:key,responseType:'js'});}else{_processAllDomains('/cookie/set',{name:key,value:value,age:315360000,responseType:'js'});}}
function _processAllDomains(action,data){var domain,i;var domainsList='$propertyTool.getProperty(\'web.cookieDomains\')'.split(',');for(i=domainsList.length-1;i>=0;i--){domain=domainsList[i];$.get(domain+action,data,function(){},'script');}
$.get(globs.urls.appengRestUrl+action,data,function(){},'script');}};var wpLoadScript=function(src,opts,cb){'use strict';var head=document.head||document.getElementsByTagName('head')[0];var script=document.createElement('script');var setAttributes=function(script,attrs){for(var attr in attrs){script.setAttribute(attr,attrs[attr]);}};var stdOnEnd=function(script,cb){script.onload=function(){this.onerror=this.onload=null;cb(null,script);};script.onerror=function(){this.onerror=this.onload=null;cb(new Error('Failed to load '+this.src),script);};};var ieOnEnd=function(script,cb){script.onreadystatechange=function(){if(this.readyState!=='complete'&&this.readyState!=='loaded'){return;}
this.onreadystatechange=null;cb(null,script);};};if(typeof opts==='function'){cb=opts;opts={};}
opts=opts||{};cb=cb||function(){};script.type=opts.type||'text/javascript';script.charset=opts.charset||'utf8';script.async='async'in opts?!!opts.async:true;script.src=src;if(opts.attrs){setAttributes(script,opts.attrs);}
if(opts.text){script.text=''+opts.text;}
var onend='onload'in script?stdOnEnd:ieOnEnd;onend(script,cb);if(!script.onload){stdOnEnd(script,cb);}
head.appendChild(script);};

/* end /web-platform/scripts/web-platform/helpers/misc.js*/

/* start /web-platform/scripts/web-platform/component/media-query-detection.js*/
SOE.MediaQueryDetection=(function(){var currentSize;var currentBreakPoint;var breakPoints=[{size:480,value:"xs"},{size:768,value:"xs"},{size:992,value:"sm"},{size:1200,value:"md"},{size:1e9,value:"lg"}];var detectBreakpointChange=function(){var newBreakPoint=detectBreakpoint();if(currentBreakPoint!==newBreakPoint.size){currentBreakPoint=newBreakPoint.size;$(window).trigger("soe.breakpointChanged",{breakpoint:newBreakPoint.value});}};var detectBreakpoint=function(){var k;currentSize=window.innerWidth||document.documentElement.clientWidth;for(k=0;k<breakPoints.length;k++){if(currentSize<breakPoints[k].size){break;}}
return breakPoints[k];};var init=function(){currentBreakPoint=detectBreakpoint().size;$(window).on("resize",detectBreakpointChange);$(window).trigger("soe.breakpointSet",{breakpoint:detectBreakpoint().value});};return{init:init,detectBreakpoint:detectBreakpoint};})();SOE.MediaQueryDetection.init();

/* end /web-platform/scripts/web-platform/component/media-query-detection.js*/

/* start /web-platform/scripts/web-platform/shop.core.js*/
SOE.Shop=function(config){this.config=config;this.config.sort=this.config.sort||'origPrice';this.products=[];if(!this.config.ajaxUrl){throw'Make sure `ajaxUrl` is set to a valid URAM URL when you instantiate the page.';}else if(!this.config.container){throw'Make sure `container` is set to a valid ID, or array of IDs when you instantiate the page.';}else if(!this.config.template){throw'Make sure `template` is set to a valid ID, array of IDs, or Underscore template function when you instantiate the page.';}};SOE.Shop.prototype.init=function(){SOE.Shop.currency=wpCookie('shop-currency')||'USD';this.symbolMap={USD:{symbol:'\u0024',method:'currencyFront'},AUD:{symbol:'A\u0024',method:'currencyFront'},DKK:{symbol:'kr',method:'currencyBack'},EUR:{symbol:'\u20AC',method:'currencyFront'},GBP:{symbol:'\u00A3',method:'currencyFront'},NOK:{symbol:'kr',method:'currencyBack'},SEK:{symbol:'kr',method:'currencyBack'},CHF:{symbol:'Fr',method:'currencyBack'},JPY:{symbol:'\u00A5',method:'currencyFront'},BRL:{symbol:'R\u0024',method:'currencyFront'},SOE:{symbol:'',method:'currencyFront'}};if($('.currency.dropdown').length){this.setCurrency();}
this.loadUramData();};SOE.Shop.prototype.getUramData=function(){$.ajax({url:globs.urls.uramAjaxUrl+this.config.ajaxUrl+SOE.Shop.currency,dataType:'json',context:this,success:function(uramData){this.formatUramData(uramData[this.config.objName]);}});};SOE.Shop.prototype.shopAjax=function(url){var _this=this;return $.ajax({url:url,dataType:'json',context:_this}).done(function(result,signature){return(signature==='success')?result:{error:'shop request failed'};})};SOE.Shop.prototype.loadUramData=function(){var _this=this;var result=0;var signature=1;var requests=[];if(SOE.Shop.currency!=='USD'){requests=[_this.shopAjax(globs.urls.uramAjaxUrl+_this.config.ajaxUrl.replace(/locale=[a-zA-Z_]{5}/,'locale=en_US')+'USD'),_this.shopAjax(globs.urls.uramAjaxUrl+_this.config.ajaxUrl+SOE.Shop.currency)];}else{requests=[_this.shopAjax(globs.urls.uramAjaxUrl+_this.config.ajaxUrl+SOE.Shop.currency)];}
$.when.apply($,requests).then(function(usdReq,usersCurrencyReq){if(typeof usersCurrencyReq!=='undefined'&&Array.isArray(usersCurrencyReq)){if(usdReq[signature]==='success'&&usersCurrencyReq[signature]==='success'){if(_this.config.objName==='products'){for(var item in usersCurrencyReq[result][_this.config.objName]){if(usdReq[result].errors.length===0){usersCurrencyReq[result][_this.config.objName][item]['productoptions'][0].usDollarAmount=usdReq[result][_this.config.objName][item]['productoptions'][0].price.split('.')[0].replace(/[^0-9]+/g,'');}else{usersCurrencyReq[result][_this.config.objName][item]['productoptions'][0].usDollarAmount=0;}}}
if(_this.config.objName==='stationcashproducts'){for(var index in usersCurrencyReq[result][_this.config.objName]){if(usdReq[result].errors.length===0){usersCurrencyReq[result][_this.config.objName][index].usDollarAmount=usdReq[result][_this.config.objName][index].price.formattedPrice.split('.')[0].replace(/[^0-9]+/g,'');}else{usersCurrencyReq[result][_this.config.objName][index].usDollarAmount=0;}}}
_this.formatUramData(usersCurrencyReq[result][_this.config.objName]);}}else{if(usdReq){if(_this.config.objName==='products'){for(var item in usdReq[_this.config.objName]){usdReq[_this.config.objName][item]['productoptions'][0].usDollarAmount=usdReq[_this.config.objName][item]['productoptions'][0].price.split('.')[0].replace(/[^0-9]+/g,'');}}
if(_this.config.objName==='stationcashproducts'){for(var index in usdReq[_this.config.objName]){usdReq[_this.config.objName][index].usDollarAmount=usdReq[_this.config.objName][index].price.formattedPrice.split('.')[0].replace(/[^0-9]+/g,'');}}
_this.formatUramData(usdReq[_this.config.objName]);}}},function(err){console.log('ERROR',err);})}
SOE.Shop.prototype.getNumber=function(num){return num.replace(/[^\d\.]+/g,'');};SOE.Shop.prototype.setCurrency=function(){var _this=this;$('.currency.dropdown').on('click','a',function(evt){SOE.Shop.currency=evt.target.dataset.currency;_this.loadUramData();$('#currency-text, .currency.dropdown .currency-text').html(currencyMap[SOE.Shop.currency]);if(SOE.Shop.currency!=='SOE'){wpCookie('shop-currency',SOE.Shop.currency,30);}});$('#currency-text, .currency.dropdown .currency-text').html(currencyMap[SOE.Shop.currency]);};SOE.Shop.prototype.currencyFront=function(price){var renderedCurrency=(globs.soelocale==='en_US')?this.symbolMap[SOE.Shop.currency].symbol+price.replace(/^\D+/g,'').replace(/\D+$/g,''):price;return renderedCurrency;};SOE.Shop.prototype.currencyBack=function(price){var renderedCurrency=(globs.soelocale==='en_US')?price.replace(/^\D+/g,'').replace(/\D+$/g,'')+this.symbolMap[SOE.Shop.currency].symbol:price;return renderedCurrency;};SOE.Shop.prototype.sortProducts=function(){var that=this;if(this.config.sort&&typeof this.config.sort==='function'){this.products.sort(this.config.sort);}else if(this.config.sort&&typeof this.config.sort!=='object'){this.products.sort(function(a,b){return that.getNumber(a[that.config.sort])-that.getNumber(b[that.config.sort]);});}else{this.products.sort(function(a,b){return that.config.sort.sortArray.indexOf(a[that.config.sort.sortProperty])-that.config.sort.sortArray.indexOf(b[that.config.sort.sortProperty]);});}};SOE.Shop.prototype.formatUramData=function(uramProducts){var counter=0;for(var k=0;k<uramProducts.length;k++){var currProduct=uramProducts[k];if((!this.config.blacklist||!_.contains(this.config.blacklist.list,currProduct[this.config.blacklist.propertyName]))&&(!this.config.whitelist||_.contains(this.config.whitelist.list,currProduct[this.config.whitelist.propertyName]))){this.reMapProductData(counter++,currProduct);}}
this.sortProducts();this.renderProducts();this.products=[];};SOE.Shop.prototype.renderProducts=function(){var template;var container=this.config.container;if(Array.isArray(this.config.container)){for(var k=0;k<this.config.container.length;k++){if(Array.isArray(this.config.template)&&this.config.template.length==this.config.container.length){if(typeof this.config.template[k]==='function'){template=this.config.template[k]({products:this.products});}else{template=_.template($(this.config.template[k]).html(),{products:this.products});}}else{template=_.template($(this.config.template).html(),{products:this.products});}
$('.spinner').fadeOut();$(container[k]).html(template);}}else{if(Array.isArray(this.config.template)){for(var arr=0;arr<this.config.template.length;arr++){if(typeof this.config.template[arr]==='function'){template+=this.config.template[arr]({products:this.products});}else{template+=_.template($(this.config.template[arr]).html(),{products:this.products});}}}else if(typeof this.config.template==='function'){template=this.config.template({products:this.products});}else{template=_.template($(this.config.template).html(),{products:this.products});}
$('.spinner').fadeOut();$(container).html(template);}
if(this.config.callback){this.config.callback();}};

/* end /web-platform/scripts/web-platform/shop.core.js*/

/* start /scripts/_pages/daybreakcash.js*/
SOE.Shop.prototype.reMapProductData=function(idx,product){'use strict';this.products.push({name:product.description,sku:product.fullSku,promo:product.promo,scPromo:product.stationCashPromo,pricePromo:product.pricePromo,highlight:(product.stationCashAmount===10000)?true:false,scOrigPrice:product.stationCashAmount,scSalePrice:product.stationCashPromoAmount,origPrice:this[this.symbolMap[SOE.Shop.currency].method](product.prePromotionPrice.formattedPrice),salePrice:this[this.symbolMap[SOE.Shop.currency].method](product.price.formattedPrice)});};try{var StationCash=new SOE.Shop({ajaxUrl:'/rest/commerce/11/stationcashproducts.action?gameCode=PS2&responseType=json&currency=',objName:'stationcashproducts',container:'#dc-bar',template:'#dc-price-bar',callback:function(){'use strict';$('#dc-bar').toggleClass('has-amount-promo',($('#dc-bar .dcAmt del').length>0));$('#dc-bar').toggleClass('has-price-promo',($('#dc-bar .dcPrice del').length>0));}}).init();}catch(error){console.info(error);}
$(document).ready(function(){'use strict';$('[data-toggle="tooltip"]').tooltip();$('.dc-faq').on('shown.bs.collapse hidden.bs.collapse',function(){var anyCollapsed=($('.dc-faq a.collapsed').length>0)?true:false;$('.faq-toggle-all').text(anyCollapsed?'+ Expand All':'- Collapse All');});$('.faq-toggle-all').on('click',function(e){e.preventDefault();var anyCollapsed=($('.dc-faq a.collapsed').length>0)?true:false;$('.dc-faq .collapse').collapse(anyCollapsed?'show':'hide');});});

/* end /scripts/_pages/daybreakcash.js*/

/* start /web-platform/scripts/web-platform/component/global-nav.js*/
(function(){'use strict';var nonMember=_.template($('script.non-member').html());var member=_.template($('script.member').html());if(globs.wdl.userLoggedIn){$.ajax({url:'/get-rest-ticket',type:'POST',data:{type:0},context:this,success:function(sid){$.ajax({url:globs.urls.uramAjaxUrl+'/rest/commerce/11/allaccessinfo.action',dataType:'json',data:{'theme':globs.wdl.theme,'responseType':'json','sessionID':sid.successPayload.ticket},success:function(data){var memberData={scGrantDate:data.scGrantDate,scGrantClaimed:data.scGrantClaimed,expirationDate:data.expirationDate};$('.currency-balance-item').each(function(){var $this=$(this);var presenceField=$this.attr('data-currency-presence-field');var balanceField=$this.attr('data-currency-balance-field');if(!presenceField||(Object.hasOwnProperty.call(data,presenceField)&&data[presenceField]===true)){if(Object.hasOwnProperty.call(data,balanceField)){$this.removeClass('hidden').find('.currency-balance').text(SOE.Utils.addSeparators(data[balanceField]));}}});if(!data.akella){if(!data.member){$('#brandBarAllAccess').html(nonMember());}else{$('#brandBarAllAccess').html(member(memberData));$('#brandBarIsMember').text('My');$('#membershipLink').click(function(e){e.preventDefault();window.location.href=globs.urls.membershipMembership;});}
$('ul#brandBarOptions').trigger('reset');}}});}});}else{$('#brandBarAllAccess').html(nonMember());}})();

/* end /web-platform/scripts/web-platform/component/global-nav.js*/
